﻿using Abp.AutoMapper;
using Abp.Domain.Entities;
using AVIS.OutBound.Orders;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AVIS.OutBound.EntityFramework.Models
{
    
    [Table("avisOBOrder")]
    [AutoMap(typeof(Order))]
    public class avisOBOrder : Entity
    {
        ///<summary>
        /// 订单号
        ///</summary>
        public string ReservationNumber { get; set; } // ReservationNumber

        ///<summary>
        /// 0旧版1新版
        ///</summary>
        public string OrderType { get; set; } // OrderType

        ///<summary>
        /// 协议号
        ///</summary>
        public string IATA { get; set; } // IATA

        ///<summary>
        /// 姓
        ///</summary>
        public string Surname { get; set; } // Surname

        ///<summary>
        /// 名
        ///</summary>
        public string Firstname { get; set; } // Firstname

        ///<summary>
        /// 会员卡号
        ///</summary>
        public string WizardNum { get; set; } // WizardNum

        ///<summary>
        /// 国家名
        ///</summary>
        public string CountryName { get; set; } // CountryName

        ///<summary>
        /// 取车门店
        ///</summary>
        public string PickupLoc { get; set; } // PickupLoc

        ///<summary>
        /// 还车门店
        ///</summary>
        public string ReturnLoc { get; set; } // ReturnLoc

        ///<summary>
        /// 取车时间
        ///</summary>
        public DateTime? PickupDate { get; set; } // PickupDate

        ///<summary>
        /// 还车时间
        ///</summary>
        public DateTime? ReturnDate { get; set; } // ReturnDate

        ///<summary>
        /// 租期
        ///</summary>
        public string RentalLength { get; set; } // RentalLength

        ///<summary>
        /// 预订车组
        ///</summary>
        public string CarGroup { get; set; } // CarGroup

        ///<summary>
        /// 邮编
        ///</summary>
        public string Postcode { get; set; } // Postcode

        ///<summary>
        /// 电话号码
        ///</summary>
        public string Telephone { get; set; } // Telephone

        ///<summary>
        /// 邮箱
        ///</summary>
        public string Email { get; set; } // Email

        ///<summary>
        /// 是否接受邮件促销
        ///</summary>
        public bool? IsEmail { get; set; } // IsEmail

        ///<summary>
        /// 航班号
        ///</summary>
        public string FlightNumber { get; set; } // FlightNumber

        ///<summary>
        /// 是否乘航班抵达
        ///</summary>
        public bool? IsNoFlightNumber { get; set; } // IsNoFlightNumber

        ///<summary>
        /// 常旅客协议
        ///</summary>
        public string FTNProgramme { get; set; } // FTNProgramme

        ///<summary>
        /// 常旅客号码
        ///</summary>
        public string FTNNumber { get; set; } // FTNNumber

        ///<summary>
        /// 附加产品
        ///</summary>
        public string SpecialEquipmentDesc { get; set; } // SpecialEquipmentDesc

        ///<summary>
        /// Avis全球折扣号
        ///</summary>
        public string AWD { get; set; } // AWD

        ///<summary>
        /// 付款类型1到付2预付
        ///</summary>
        public string PayType { get; set; } // PayType

        ///<summary>
        /// 信用卡号
        ///</summary>
        public string CardNum { get; set; } // CardNum

        ///<summary>
        /// 优惠券号
        ///</summary>
        public string CouponNum { get; set; } // CouponNum

        ///<summary>
        /// 订单金额
        ///</summary>
        public double? QuotedTMI { get; set; } // QuotedTMI

        ///<summary>
        /// 货币单位
        ///</summary>
        public string CurrencyCode { get; set; } // CurrencyCode

        ///<summary>
        /// 人名币价格
        ///</summary>
        public double? AmountCNY { get; set; } // AmountCNY

        ///<summary>
        /// 是否取消
        ///</summary>
        public bool? IsCancel { get; set; } // IsCancel

        ///<summary>
        /// 客户下订时间
        ///</summary>
        public DateTime? BookingDate { get; set; } // BookingDate
        public string LastRateCode { get; set; } // LastRateCode
        public string Remark { get; set; } // Remark
        public int? B2BID { get; set; } // B2BID
        public bool? IsSendMessage { get; set; } // IsSendMessage

        ///<summary>
        /// 创建时间
        ///</summary>
        public DateTime? CreateDate { get; set; } // CreateDate

        ///<summary>
        /// 创建人
        ///</summary>
        public string CreateUser { get; set; } // CreateUser

        ///<summary>
        /// 修改时间
        ///</summary>
        public DateTime? ModifyDate { get; set; } // ModifyDate

        ///<summary>
        /// 修改人
        ///</summary>
        public string ModifyUser { get; set; } // ModifyUser
        public string CancelReason { get; set; } // CancelReason
        public int? YouyouOrderID { get; set; } // YouyouOrderID
        public double? DiscountCost { get; set; } // DiscountCost
    }
}
